﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Bastanteo.Domain.Representante>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table width="98%" border=0 cellpadding="0" cellspacing="0" align="center">
	    <tr align="center">		
		    <td class="titulon" valign="middle">Mantenimiento de Representantes</td>
	    </tr>			
    </table>
    <br />

    <table>
        <tr>
            <th></th>
            <th>Tipo Doc.</th>
            <th>Nro. documento</th>
            <th>Nombre</th>
            <th>Apellido</th>
            <th>Cargo</th>
            <th>
                Cliente
            </th>
            <th>
                Grupo
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Modificar", "Modificacion", new { Codigo = item.RepresentanteNumDoc })%> |
                <%: Html.ActionLink("Ver", "Visualizacion", new { Codigo = item.RepresentanteNumDoc })%> |
                <%: Html.ActionLink("Eliminar", "Eliminacion", new { Codigo = item.RepresentanteNumDoc })%>
            </td>
            <td>
                <%: item.RepresentanteTipoDoc %>
            </td>
            <td>
                <%: item.RepresentanteNumDoc %>
            </td>
            <td>
                <%: item.RepresentanteNombre %>
            </td>
            <td>
                <%: item.RepresentanteApellidos %>
            </td>
            <td>
                <%: item.CargoId %>
            </td>
            <td>
                <%: item.ClienteId %>
            </td>
            <td>
                <%: item.GrupoId %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Crear", "Creacion") %>
    </p>

</asp:Content>

